﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using System.Collections;
using System.Data.SqlClient;
using System.Data;

namespace DAO
{
    public class ChiTietPhieuXuatKhoDAO : DataProvider
    {
        public ArrayList GetDSChiTietPhieuXuatKho(int id)
        {
            connect();
            string sql = "SELECT * FROM ChiTietPhieuXuatKho WHERE xuat_kho_id = "+ id;
            adapter = new SqlDataAdapter(sql, connection);
            DataSet dataset = new DataSet();
            adapter.Fill(dataset);
            ArrayList arr = ConvertDataSetToArrayList(dataset);
            disconnect();
            return arr;
        }
    }
}
